//
//  HWCommentView.m
//  HappyWeekend
//
//  Created by lanou on 16/1/13.
//  Copyright © 2016年 com.mjykj.www. All rights reserved.
//

#import "HWCommentView.h"

@implementation HWCommentView

- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        
        _imageV = [[UIImageView alloc] initWithFrame:CGRectMake(10, 10, 50, 50)];
        _imageV.layer.masksToBounds = YES;
        _imageV.layer.cornerRadius = 25;
        [self addSubview:_imageV];
        
        _nameLabel = [[UILabel alloc] initWithFrame:CGRectMake(_imageV.right + 10, 10, kScreenWidth - 130 - _imageV.right, 20)];
        _nameLabel.font = [UIFont systemFontOfSize:16];
        [self addSubview:_nameLabel];
        
        _timeLabel = [[UILabel alloc] initWithFrame:CGRectMake(_nameLabel.right, 10, 110, 20)];
        _timeLabel.textColor = [UIColor grayColor];
        _timeLabel.font = [UIFont systemFontOfSize:12];
        [self addSubview:_timeLabel];
        
        _contentLabel = [[UILabel alloc] initWithFrame:CGRectMake(_nameLabel.left, _nameLabel.bottom + 10, kScreenWidth - _imageV.right - 30, 50)];
        _contentLabel.numberOfLines = 0;
        _contentLabel.textColor = [UIColor grayColor];
        [self addSubview:_contentLabel];
        
        _lineLabel = [[UILabel alloc] initWithFrame:CGRectMake(_nameLabel.left, _contentLabel.bottom + 10,kScreenWidth - _nameLabel.left, 1)];
        _lineLabel.backgroundColor = [UIColor grayColor];
        [self addSubview:_lineLabel];
        
    }
    return self;
}

@end
